package pl.mcnova;

import pl.mcnova.view.MainView;

public final class McNova {

	private static volatile McNova instance = null;
	private static String login;
	private static String password;

	public static McNova getInstance() {
		if (instance == null) {
			synchronized (McNova.class) {
				if (instance == null) {
					instance = new McNova();
				}
			}
		}
		return instance;
	}

	public static void init(String l, String pass) {
		login = l;
		password = pass;
		new MainView();
	}

	private McNova() {

	}

	public static String getLogin() {
		return login;
	}

	public static String getPass() {
		return password;
	}

	public static void setLogin(String l) {
		login = l;
	}

	public static void setPass(String p) {
		password = p;
	}

}
